/**
 * ------------------------------------------------------
 *  封装token的存取删操作
 * ------------------------------------------------------
 *
 * Note: .
 */

import { TOKENKEY } from "@/config/constants"

function setToken(token){
    localStorage.setItem(TOKENKEY,token)
}

function getToken(){
    return localStorage.getItem(TOKENKEY)
}

function removeToken(){
    localStorage.removeItem(TOKENKEY)
}

export {
    setToken,
    getToken,
    removeToken
}